package extendDemo.constructor;

public class Student extends Person {
  private int score;

  public Student() {
    System.out.println("子类空参构造方法");
  }

  public Student(int score) {
    this.score = score;
    System.out.println("子类带参构造方法");
  }

  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }
}
